package com.bdqn.qnnews.articel.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 在自媒体端传递到App端的数据对象
 * 除了文章信息外还需要包含内容
 * @author xlzhang
 */
@Data
@Schema(name = "ApArticleDto 对象", description = "自媒体发送给app端的文章数据")
public class ApArticleDto {

    @Schema(description = "文章id")
    private Long id;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "文章作者的ID")
    private Integer authorId;

    @Schema(description = "作者昵称")
    private String authorName;

    @Schema(description = "文章所属频道ID")
    private Integer channelId;

    @Schema(description = "频道名称")
    private String channelName;

    @Schema(description = "文章布局  0 无图文章  1 单图文章  2 多图文章")
    private Byte layout;

    @Schema(description = "文章图片 多张逗号分隔")
    private String images;

    @Schema(description = "文章标签最多3个 逗号分隔")
    private String labels;

    @Schema(description = "创建时间")
    private LocalDateTime createdTime;

    @Schema(description = "发布时间")
    private LocalDateTime publishTime;

    @Schema(description = "静态详情页地址")
    private String staticUrl;

    @Schema(description = "json格式的内容字符串")
    private String content;
}